﻿namespace EfSandbox.Entities.Final.Eod {
    public class Symbol {
        public int SymbolId { set; get; }
        public string SymbolCode { set; get; }
        public string SymbolName { set; get; }
        public int ExchangeId { set; get; }
        public virtual Exchange Exchange { set; get; }
        public string SymbolShortLable {
            get {
                return string.Format("{0}:{1}", SymbolCode, Exchange.ExchangeCode);
            }
        }
        public string SymbolLongLable {
            get {
                return string.Format("{0}:{1} - {2}", SymbolCode, Exchange.ExchangeCode, SymbolName);
            }
        }
    }
}
